
    <? $cnt = count($objects); ?>
    <? for ($i = 0; $i < $cnt; $i++): ?>
            <? if ($i == 4) break; ?>
            <?
            $obj_name = URLify::filter($objects[$i]->object_name);
            $href = lang_url('accommodation/' . $obj_name . '-' . $objects[$i]->object_ID . '?preview=1&room_id=' . $objects[$i]->lowest_price_room_id);
            $thumbnail = HOST_URL_HOTELS . 'gallery/' . $objects[$i]->photo_path . '/thumb_130x130/' . $objects[$i]->photo_name;
            ?>
            <a class="clearfix" href="<?= $href ?>">

                <img src="<?= $thumbnail ?>" alt="<?= $objects[$i]->object_name ?>" width="90">
                <div>

                    <h4 class="ellipsis"><?= $objects[$i]->object_name ?></h4>
                    <div class="stars small star_<?= $objects[$i]->object_number_of_stars ?>"></div>
                    <div class="price"><?= lang('from'); ?> <span class="big">  € <?= round($objects[$i]->lowest_price) ?></span></div>
                </div>
            </a>
        <? endfor; ?>
</div>

<? $cnt = count ( $recommended ); ?>
<ul class="rslides">
    <? for ( $i = 0; $i < $cnt; $i++ ): ?>
            <li>
                <?
                $obj_name = URLify::filter ( $recommended[$i]->object_name );
                $href = lang_url ( 'accommodation/' . $obj_name . '-' . $recommended[$i]->object_ID . '?preview=1&room_id=' . $recommended[$i]->lowest_price_room_id );
                $thumbnail = HOST_URL_HOTELS . 'gallery/' . $recommended[$i]->photo_path . '/thumb_581x342/' . $recommended[$i]->photo_name;
                ?>
                <img src="<?= $thumbnail ?>" alt="<?= $recommended[$i]->object_name ?>" /> 
                <?
                $string = strip_tags ( $recommended[$i]->object_information );
                $strlen = strlen ( $recommended[$i]->object_name );
                ?>
                <div class="black"  style="width:<?= $strlen * 13 - 19 ?>px">
                    <h3><?= $recommended[$i]->object_name ?></h3>
                    <span class="result-price"><?= lang('from'); ?> <span class="big">  € <?= round ( $recommended[$i]->lowest_price ) ?></span></span>
                    <p style="width:<?= $strlen * 17 ?>px">
                        <?
                        $string = strip_tags ( $recommended[$i]->object_information );
                        $strlen = strlen ( $recommended[$i]->object_name );
                        echo substr ( $string, 0, ($strlen * 1.3) * 1.1 ) . '...';
                        ?></p>
                    <a href="<?= $href ?>"><?= lang('view_details'); ?></a>
                </div>
            </li>
        <? endfor; ?> 
</ul><!-- / rslides -->